<template>
  <section class="p-18">
    <a-form class="inline-form">
      <a-row type="flex" :gutter="16" style="margin-right: 0; padding-right: 4px">
        <a-col :span="8">
          <a-form-item label="短信通知:">{{ noticeMethodInfo.isSmsReminder ? '启用' : '不启用' }}</a-form-item>
        </a-col>
        <a-col :span="8">
          <a-form-item label="邮箱通知:">{{ noticeMethodInfo.isEmailReminder ? '启用' : '不启用' }}</a-form-item>
        </a-col>
        <a-col :span="8">
          <a-form-item label="钉钉通知:">{{ noticeMethodInfo.dingTalkIsEnable ? '启用' : '不启用' }}</a-form-item>
        </a-col>
        <a-col :span="8">
          <a-form-item label="微信通知:">{{ noticeMethodInfo.wechatIsEnable ? '启用' : '不启用' }}</a-form-item>
        </a-col>
        <a-col :span="24">
          <a-form-item label="钉钉机器人URL:">{{ noticeMethodInfo.dingTalkWebhookAddress }}</a-form-item>
        </a-col>
        <a-col :span="24">
          <a-form-item label="企业微信机器人URL:">{{ noticeMethodInfo.wechatWebhookAddress }}</a-form-item>
        </a-col>
      </a-row>
    </a-form>
  </section>
</template>

<script>
import { noticeMethod } from '@/api/store/index'

export default {
  components: {},
  props: {
    data: {
      type: Object,
      default: () => ({}),
    },
    storeId2: {
      type: Number,
    },
  },
  data() {
    return {
      noticeMethodInfo: {},
    }
  },
  computed: {},
  watch: {},
  created() {
    console.log(this.data)
  },
  mounted() {},
  destroyed() {},
  methods: {
    getData() {
      return new Promise((resolve, reject) => {
        noticeMethod({
          storeId: this.storeId2, // 门店id
        })
          .then((res) => {
            // this.rentCarTipsInfo = res
            this.noticeMethodInfo = res
            console.log(this.noticeMethodInfo)
            resolve()
          })
          .finally(() => {
            // this.loading = false
          })
      })
    },
  },
}
</script>
<style scoped lang='less'>
</style>
